#ifndef __IRR_EVENTSENDER_3DIJOY_H__
#define __IRR_EVENTSENDER_3DIJOY_H__

#include "./Input3dijoy/include/3DiJoyInterface.h"
#include <cstdio>
#include <vector>

// open /EHsc options for microsoft compiler

class EventSender_3dijoy
{
public:
  bool Init(void* hwnd);

  void Term();

  void PostEvent2Irr();
private:
  void _OccurAnAxisEvent(UINT16 keyCode, bool pressed);
  struct JoyDevice
  {
    UINT8 deviceId;
    DEVICE_INFO deviceInfo;
  };

  std::vector<JoyDevice> devices;

  DEVICE_DATA data;
  void* hWnd;
	unsigned char allKeys[256];
};

#endif // __IRR_EVENTSENDER_3DIJOY_H__
